Auto merge of #2592 - jethrogb:topic/list-symlinks, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 19 Apr 2016 22:32:11 +0000 (15:32 -0700)
committerbors <bors@rust-lang.org>
Tue, 19 Apr 2016 22:32:11 +0000 (15:32 -0700)
commitd99a7eb37705754779778d3cb1fefcec618a1b95
tree6cfd08c52dd3f2aa63879be43e049a188a42149e
parent8975f30d80f0d1c52369609d84ff2a79bd87649b
parente8ff2e00a8a1a503708263ceff07fece06d0063c
Auto merge of #2592 - jethrogb:topic/list-symlinks, r=alexcrichton

Use stat() instead of lstat() in cargo --list

The OS-specific implementation is necessary because according to the docs, [DirEntry::metadata is fast on Windows](https://doc.rust-lang.org/stable/std/fs/struct.DirEntry.html#method.metadata). Note  `is_executable` is used elsewhere so we can't change that directly to accept `DirEntry` instead of `Metadata`.

Fixes #2591
src/bin/cargo.rs